package com.unbox.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * < 应用管理实体类
 * </p>
 *
 * @author 王振宇
 * @since 2021-05-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("unbox_apps")
@ApiModel(value = "Apps", description = " 应用管理")
public class Apps implements Serializable {
    private static final long serialVersionUID = 1L;
   /**
    * 应用id
    */
    @TableId(value = "app_id", type = IdType.AUTO)
    @ApiModelProperty(value = "应用id", name = "appId")
    private Integer appId;

   /**
    * 应用名称
    */
    @TableField(value = "name")
    @ApiModelProperty(value = "应用名称", name = "name")
    private String name;

   /**
    * 应用key
    */
    @TableField(value = "app_key")
    @ApiModelProperty(value = "应用key", name = "appKey")
    private String appKey;

   /**
    * 应用token
    */
    @TableField(value = "app_token")
    @ApiModelProperty(value = "应用token", name = "appToken")
    private String appToken;

   /**
    * 状态
    */
    @TableField(value = "stats")
    @ApiModelProperty(value = "状态", name = "stats")
    private Integer stats;

   /**
    * 创建时间
    */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private LocalDateTime createTime;

}
